<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->post('image/upload', 'AdminController@imageUpload');

    $router->get('article/makeSubTitle', 'ArticleController@makeSubTitle');
    $router->get('category/makeCategoryLetter', 'CategoryController@makeCategoryLetter');
    $router->get('site/buildJsonFromSite', 'SiteController@buildJsonFromSite');
    $router->resource('article', 'ArticleController');
    $router->resource('category', 'CategoryController');
    $router->resource('settings', 'SettingController');
    $router->resource('navbar', 'NavbarController');

});
